/**
 * @filename:WarehouseService Jan 14, 2025
 * @project Wonder Vue Admin Api  1.1.0
 * Copyright(c) 2022 Wonder Co. Ltd. 
 * All right reserved. 
 */
package com.wonder.app.service;
import com.wonder.app.domain.Warehouse;
import com.wonder.app.request.WarehouseRequest;
import com.wonder.common.common.AjaxResult;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;
import java.util.Map;
/**   
 * @Description:TODO(仓库列表服务层)
 * @version: 1.1.0
 * @author: Wonder
 * 
 */
public interface WarehouseService extends IService<Warehouse> {

    
    /**
     * 验证仓库列表信息
     * 
     * @param warehouse
     * @param type
     * @return 结果
     */
    public String validate(Warehouse warehouse,String type);   
   
	
	 /**
	 * Description:仓库列表分页返回
	 * @param request//检索条件
	 * @param page//分页参数
	 * @return IPage<Warehouse>   //分页记录
	 */
    public IPage<Warehouse> selectList(WarehouseRequest request, Page<Warehouse> page);


	/**
	 * 判断仓库是否启用仓位
	 * @param map
	 * @return
	 */
	Boolean checkStock(Map<String, Object> map) throws Exception;

	/**
	 * 根据仓库获取仓位
	 * @param map
	 * @return
	 */
	List<String> getLocation(Map<String, Object> map) throws Exception;

	Map<String, Object> getStockList(Map<String, Object> map,Long user_id) throws Exception;

	Map<String, Object> getStockListByUser(Map<String, Object> map, Long user_id)throws Exception;

	Map<String, Object> getHosutList(Map<String, Object> map, Long user_id)throws Exception;
}
